﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace TagCloudSample {
    public partial class _Default : System.Web.UI.Page {
        System.Random rnd = new Random();
        protected void Page_Load(object sender, EventArgs e) {
            if(!Page.IsPostBack) {
                this.TagCloud1.TagList = new TagCloud.TagList();
                for(int x = 0;x <= 50;x++) {
                    this.TagCloud1.TagList.Add(new TagCloud.Tag("Tag:"+x, rnd.Next()));
                }
            }
        }
    }
}
